<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.sun.xml.internal.fastinfoset.Encoder"%>
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>北京天山新材料技术股份有限公司</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="/js/common/jquery-1.4.2.min.js"></script> 
<link href="/usercenter/css/usercenter.css" rel="stylesheet" type="text/css" />	
<script language="javascript" src="/usercenter/js/usercenter.js"></script>
<script language="javascript" src="/js/calendar.js"></script>
<script language="javascript">
var cdr = new Calendar("cdr");
document.write(cdr);
cdr.showMoreDay = true;
function cargoAdd(val)	{
	window.location.href="/usercenter/newInvestigationCargo.do?id="+val;
}
</script>
</head>
	
<body>
<div class="main">
	<div class="maintable">
		<form id="form" name="form"  enctype="multipart/form-data"  method="post" action="/usercenter/updateInvestigation.do">
		<table class="tb" border="1" bordercolor="#e7e7e7" >	
		  	<tr>
			  	<td colspan="2" class="maintitle" >
					<div class="maintitleimg"></div>
					<div class="maintitle_a">编辑评价记录</div>
			  	</td>
      	  	</tr>
			<tr style="display:none">
				<td align="right" class="field" >评价表ID：</td>
				<td align="left" class="fieldtext" ><input type="text" id="id" name="id" value="${sinv.investigationid }" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="field" >评价表编码：</td>
				<td width="80%" align="left" class="fieldtext" >${sinv.code }</td>
			</tr>
			<tr>
				<td width="20%" align="right" class="field" >供应商名称：</td>
				<td width="80%" align="left" class="fieldtext" >${ssup.account }</td>
			</tr>
			<tr>
				<td align="right" class="field" >评价日期：</td>
				<td align="left" class="fieldtext" ><input type="text" id="investigationTime" name="investigationTime" value="<s:date name="sinv.investigationTime" format="yyyy-MM-dd" />" readonly="readonly" /></td>				
			</tr>
			<tr>
		    	<td align="right" class="field" ><span>供方分类：</span></td>
				<td align="left" class="fieldradio" >
					<input type="radio" id="scs" name="type" value="生产商" />生产商
					<input type="radio" id="jxs" name="type" value="经销商" />经销商
					<script language="javascript">
						var v = "${sinv.type }";
						if(v == "生产商") $("input#scs").attr("checked","checked");
						if(v == "经销商") $("input#jxs").attr("checked","checked");
					</script>
				</td>			
			</tr>
			<tr>
				<td align="right" class="field" >供方资质：</td>
				<td align="left" class="fieldtext" ></td>				
			</tr>
			<tr>
				<td align="right" class="field" >地址：</td>
				<td align="left" class="fieldtext" ><input type="text" id="address" name="address" value="${sinv.address }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >邮编：</td>
				<td align="left" class="fieldtext" ><input type="text" id="postcode" name="postcode" value="${sinv.postcode }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >公司网址：</td>
				<td align="left" class="fieldtext" ><input type="text" id="portal" name="portal" value="${sinv.portal }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >供应商推送分类：</td>
				<td align="left" class="fieldtext" ></td>				
			</tr>
			<tr align="left" ><td colspan="3" style="color:#ff0000; padding:0 0 0 20px;" ><b>商务条款-></b></td></tr>
			<tr>
				<td align="right" class="field" >付款方式：</td>
				<td align="left" class="fieldtext" ><input type="text" id="payType" name="payType" value="${sinv.payType }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >预付款(%)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="imprest" name="imprest" value="${sinv.imprest }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >月结(天)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="settlement" name="settlement" value="${sinv.settlement }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >币种：</td>
				<td align="left" class="fieldtext" >
					<select id="currency" name="currency" >
						<option id="rmb" value="人民币" >人民币</option>
						<option id="my" value="美元" >美元</option>
						<option id="oy" value="欧元" >欧元</option>
						<option id="ry" value="日元" >日元</option>
					</select>
					<script language="javascript">
						var v = "${sinv.currency }";
						if(v == "人民币") $("option#rmb").attr("selected","selected");
						if(v == "美元") $("option#my").attr("selected","selected");
						if(v == "欧元") $("option#oy").attr("selected","selected");
						if(v == "日元") $("option#ry").attr("selected","selected");
					</script>
				</td>						
			</tr>
			<tr>
				<td align="right" class="field" >运输方式：</td>
				<td align="left" class="fieldradio" >
					<input type="radio" id="ly" name="transportType" value="陆运" />陆运
					<input type="radio" id="ky" name="transportType" value="空运" />空运
					<input type="radio" id="hy" name="transportType" value="海运" />海运
					<input type="radio" id="hhy" name="transportType" value="混合运输" />混合运输
					<script language="javascript">
						var v = "${sinv.transportType }";
						if(v == "陆运") $("input#ly").attr("checked","checked");
						if(v == "空运") $("input#ky").attr("checked","checked");
						if(v == "海运") $("input#hy").attr("checked","checked");
						if(v == "混合运输") $("input#hhy").attr("checked","checked");
					</script>
				</td>		
			</tr>
			<tr align="left" ><td colspan="3" style="color:#ff0000; padding:0 0 0 20px;" ><b>基本信息-></b></td></tr>
			<tr>
				<td align="right" class="field" >法人：</td>
				<td align="left" class="fieldtext" ><input type="text" id="legalPerson" name="legalPerson" value="${sinv.legalPerson }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >联系人：</td>
				<td align="left" class="fieldtext" ><input type="text" id="contact" name="contact" value="${sinv.contact }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >电话：</td>
				<td align="left" class="fieldtext" ><input type="text" id="tel" name="tel" value="${sinv.tel }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >传真：</td>
				<td align="left" class="fieldtext" ><input type="text" id="fax" name="fax" value="${sinv.fax }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >手机：</td>
				<td align="left" class="fieldtext" ><input type="text" id="mobile" name="mobile" value="${sinv.mobile }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >E-Mail：</td>
				<td align="left" class="fieldtext" ><input type="text" id="email" name="email" value="${sinv.email }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >开户银行：</td>
				<td align="left" class="fieldtext" ><input type="text" id="bank" name="bank" value="${sinv.bank }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >银行账号：</td>
				<td align="left" class="fieldtext" ><input type="text" id="bankAccount" name="bankAccount" value="${sinv.bankAccount }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >企业性质：</td>
				<td align="left" class="fieldtext" ><input type="text" id="taxCollector" name="taxCollector" value="${sinv.taxCollector }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >注册资金(万)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="registerCapital" name="registerCapital" value="${sinv.registerCapital }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >固定资产(万)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="fixedAssets" name="fixedAssets" value="${sinv.fixedAssets }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >员工总数(人)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="employee" name="employee" value="${sinv.employee }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >管理人员(人)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="management" name="management" value="${sinv.management }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >技术开发人员(人)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="technical" name="technical" value="${sinv.technical }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >质管人员(人)：</td>
				<td align="left" class="fieldtext" ><input type="text" id="qc" name="qc" value="${sinv.qc }" /></td>				
			</tr>
			<tr align="left" ><td colspan="3" style="color:#ff0000; padding:0 0 0 20px;" ><b>生产型企业填写-></b></td></tr>
			<tr>
				<td align="right" class="field" >每批产量：</td>
				<td align="left" class="fieldtext" ><input type="text" id="groupOutput" name="groupOutput" value="${sinv.groupOutput }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >供应能力/年：</td>
				<td align="left" class="fieldtext" ><input type="text" id="supplyAbility" name="supplyAbility" value="${sinv.supplyAbility }" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >产品工艺：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="process"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.process }
						</FCK:editor></td>		
			</tr>
			<tr>
				<td align="right" class="field" >生产设备：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="productionEquipment"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.productionEquipment }
						</FCK:editor></td>			
			</tr>
			<tr>
				<td align="right" class="field" >检测设备：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="detectionEquipment"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.detectionEquipment }
						</FCK:editor></td>						
			</tr>
			<tr>
				<td align="right" class="field" >产品检测标准：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="approveStandard"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.approveStandard }
						</FCK:editor></td>				
			</tr>
			<tr>
				<td align="right" class="field" >产品检测报告：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="approveReport"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.approveReport }
						</FCK:editor></td>				
			</tr>
			<tr align="left" ><td colspan="3" style="color:#ff0000; padding:0 0 0 20px;" ><b>质量体系-></b></td></tr>	
			<tr>
				<td align="right" class="field" >取得认证：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="getApprove"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.getApprove }
						</FCK:editor></td>				
			</tr>
			<tr>
				<td align="right" class="field" >计划认证：</td>
				<td align="left" class="fieldtext" ><FCK:editor id="planApprove"  basePath="/"
							imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=syjblog&Connector=connectors/jsp/connector"
							linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
							imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=image"
							linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
							height="200px">${sinv.planApprove }
						</FCK:editor></td>				
			</tr>
			<tr align="left" ><td colspan="3" style="color:#ff0000; padding:0 0 0 20px;" ><b>其他-></b></td></tr>
			<tr>
				<td align="right" class="field" >税务登记证：</td>
				<td align="left" class="fieldtext" ><img src="${sinv.taxationCert }" style="margin:10px 0 10px 0;width:50%;height:auto;border:1px solid #cccccc;" /><br/><input type="file" id="taxcert" name="taxcert" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >营业执照：</td>
				<td align="left" class="fieldtext" ><img src="${sinv.businessCert }" style="margin:10px 0 10px 0;width:50%;height:auto;border:1px solid #cccccc;" /><br/><input type="file" id="buscert" name="buscert" value="" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >危险品生产许可证：</td>
				<td align="left" class="fieldtext" ><img src="${sinv.productCert }" style="margin:10px 0 10px 0;width:50%;height:auto;border:1px solid #cccccc;" /><br/><input type="file" id="procert" name="procert" value="" /></td>				
			</tr>
			<tr>
				<td align="right" class="field" >危险品经营许可证：</td>
				<td align="left" class="fieldtext" ><img src="${sinv.operateCert }" style="margin:10px 0 10px 0;width:50%;height:auto;border:1px solid #cccccc;" /><br/><input type="file" id="opecert" name="opecert" value="" /></td>				
			</tr>
<%--			<tr>--%>
<%--				<td align="right" class="field" >TDS：</td>--%>
<%--				<td align="left" class="fieldtext" ><input type="text" id="tdsCert" name="tdsCert" value="" /></td>				--%>
<%--			</tr>--%>
<%--			<tr>--%>
<%--				<td align="right" class="field" >MSDS：</td>--%>
<%--				<td align="left" class="fieldtext" ><input type="text" id="msdsCert" name="msdsCert" value="" /></td>				--%>
<%--			</tr>--%>
<%--			<tr>--%>
<%--				<td align="right" class="field" >其它许可证：</td>--%>
<%--				<td align="left" class="fieldtext" ><input type="text" id="otherCert" name="otherCert" value="" /></td>				--%>
<%--			</tr>--%>
			<tr>
				<td align="right" class="field" >是否推送采购部：</td>
				<td align="left" class="fieldradio" >
					<input type="radio" id="ts" name="ifPushPurchasing" value="1" />推送
					<input type="radio" id="bts" name="ifPushPurchasing" value="0"  />不推送   
					<script language="javascript">
						var v = "${sinv.ifPushPurchasing }";
						if(v == "1") $("input#ts").attr("checked","checked");
						if(v == "0") $("input#bts").attr("checked","checked");
					</script>
				</td>				
			</tr>
	    	<tr>
		    	<td align="right" class="field" ><span>审核状态：</span></td>
				<td align="left" class="fieldtext" ><s:if test="#sinv.auditState == 1">审核通过</s:if><s:else >未通过</s:else></td>				
		  	</tr> 	 	
	    	<tr>
		    	<td align="right" class="field" ><span>审核人：</span></td>
				<td align="left" class="fieldtext" >${sinv.auditPerson }</td>				
		  	</tr> 	 	
	    	<tr>
		    	<td align="right" class="field" ><span>审核时间：</span></td>
				<td align="left" class="fieldtext" ><s:date name="#sinv.auditTime" format="yyyy-MM-dd" /></td>				
		  	</tr> 	
			<tr>
			  	<td align="center" colspan="2" class="maintitle" >
			  		<input type="submit" value="提交" onclick="return submitConfirm();" />
			  		<input type="reset" value="重置" onclick="return resetConfirm();" />
<%--			  		<input type="button" value="添加货物" onclick="cargoAdd(${sinv.investigationid });" />--%>
			  		<input type="button" value="返回" onclick="back();" />
			  	</td>
			</tr>
        </table>
        </form>
<%--        <table class="tblist" width="730" border="1" bordercolor="#e7e7e7" >		--%>
<%--		  <tr height="30" bgcolor="#FFFFFF" >--%>
<%--		    <td colspan="7">--%>
<%--		    	<div style="float:left; width:20%;" class="title" >货物名称</div>--%>
<%--		    	<div style="float:left; width:10%;" class="title" >评价日期</div>--%>
<%--		    	<div style="float:left; width:10%;" class="title" >供货周期</div>--%>
<%--		    	<div style="float:left; width:40%;" class="title" >货物标准</div>--%>
<%--		    	<div style="float:left; width:20%;" class="title" >操作</div>--%>
<%--		    </td>--%>
<%--		  </tr>		--%>
<%--		  <s:iterator value="sinvcargolist" id="sinvcargoval" >--%>
<%--		  <tr height="30">--%>
<%--		    <td width="20%" align="center" ><a href="/usercenter/editInvestigationCargo.do?id=${sinvcargoval.invcargoid }" >${sinvcargoval.name }</a></td>--%>
<%--		    <td width="10%" align="center" ><s:date name="#sinvcargoval.investigationTime" format="yyyy-MM-dd" /></td>--%>
<%--		    <td width="10%" align="center" >${sinvcargoval.supplyCycle }</td>--%>
<%--		    <td width="40%" align="center" >${sinvcargoval.standard }</td>--%>
<%--		    <td width="20%" align="center" >--%>
<%--		    	<a href="/usercenter/editInvestigationCargo.do?id=${sinvcargoval.invcargoid }" >编辑</a>--%>
<%--		    	<a href="/usercenter/deleteInvestigationCargo.do?id=${sinvcargoval.invcargoid }&oid=${sinvcargoval.investigationid }" onclick="return deleteConfirm();" >删除</a>--%>
<%--			</td>--%>
<%--		  </tr>	  --%>
<%--		  </s:iterator>		  --%>
<%--		  	<tr height="30" >--%>
<%--			  	<td align="center" colspan="6" >当前第${pages.currentPage }页，共${pages.pageCount }页${pages.allNum }条记录 			  	--%>
<%--					<s:if test="pages.currentPage > 1" ><a href="#" onclick="sortPage(1);">首页</a></s:if>--%>
<%--					 <s:else>首页 </s:else>|--%>
<%--					<s:if test="pages.currentPage > 1" ><a href="#"  onclick="sortPage(${pages.currentPage-1});">上一页</a></s:if>--%>
<%--					 <s:else>上一页 </s:else>|--%>
<%--					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.currentPage+1 });">下一页</a> </s:if>--%>
<%--					 <s:else>下一页 </s:else>|--%>
<%--					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.pageCount });">末页</a> </s:if>--%>
<%--					 <s:else>末页</s:else>--%>
<%--				</td>--%>
<%--      	  	</tr>--%>
<%--        </table>--%>
	</div>
</div>
</body>
</html>